/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.emex.app.shared.ws;

import com.emex.app.shared.data.User;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author Sergey Karavaev
 */
@WebService(targetNamespace = "http://emex.com/Authentication")
public interface AuthenticationWebService {

    /**
     * Simple operation to check authentication parameters
     *
     * @return
     */
    @WebMethod
    public User authenticate(String username, String password);

    @WebMethod
    public int deleteUserByPrimaryKey(Integer id);

    @WebMethod
    public User insertUser(User record);

    @WebMethod
    public List<User> getAllUsers();

    @WebMethod
    public User updateUserByPrimaryKey(User record);
    
    @WebMethod
    public User selectUserByPrimaryKey(Integer id);
}
